package com.hzm.controller;

import com.alipay.api.AlipayApiException;
import com.hzm.service.AliPayHuiDiaoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: qy137-java
 * @description:
 * @author: 皇子明
 * @create: 2021-10-24 21:08
 **/
@RestController
@RequestMapping("/order/jiXuPay")
public class PayHuiDiaoController {
    @Resource
    private AliPayHuiDiaoService aliPayHuiDiaoService;
    @ApiOperation(("支付操作"))
    @GetMapping("/allPay/{id}/{HuiYuanId}")
    public String allPay(@PathVariable("id") String id, @PathVariable("HuiYuanId") String HuiYuanId) throws AlipayApiException {
        String s = aliPayHuiDiaoService.allPay(id, HuiYuanId);
        return s;
    }
}
